package com.example.zhangxuemin.fragmenttest130zxm.fragment;


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.example.zhangxuemin.fragmenttest130zxm.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class AddressFragment extends Fragment {
    private  View  view;
    private Context context;
    private TextView address;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        context=getActivity();
        view=inflater.inflate(R.layout.wfragment,container,false);
        address=(TextView)view .findViewById(R.id.atextView);
        address.setText("微信");
        Toast.makeText(context,"加载微信",Toast.LENGTH_LONG).show();
                return  view;
    }

}
